﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace WebApplication1
{
    public partial class WebForm2 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            string nameg =Request.QueryString["TextBox1"];
            string passwordg =Request.QueryString["TextBox2"];
            string namep = Request.Form["TextBox1"];
            string passwordp =Request.QueryString["TextBox2"];
            if (nameg!=null) {
                Literal1.Text = $"你好{nameg},你的密码是{passwordg},get传输";
            }
            if (namep !=null) {
                Literal1.Text = $"你好{namep},,你的密码是{passwordp},post传输"; }
       
            
        }
    }
}